package com.learn.designPatterns.behavioral.memento;

/**
 * @classname:
 * @Description:
 * @author: yfpu
 * @Date: 2018-10-20 18:15
 */
public class PreviousCalculationImpl implements PreviousCalculatorToOriginator,PreviousCalculatorToCareTaker{

    private int firstNum;
    private int secondNum;


    public PreviousCalculationImpl(int firstNum, int secondNum) {
        this.firstNum = firstNum;
        this.secondNum = secondNum;
    }

    @Override
    public int getFirstNum() {
        return firstNum;
    }

    @Override
    public int getsecondNum() {
        return secondNum;
    }
}
